<?php
require '../config.php';

$codigo = $_REQUEST['codigo'];

$result = mysql_query('SELECT descripcion FROM formaspago where idformaspago = "'. $codigo .'"');  

if(mysql_num_rows($result)>0){
	$row = mysql_fetch_array($result);
	echo($row['descripcion']);
}else{
	echo 0;
}
?>
